﻿#region itdc

/************************************************************************
*Copyright(C) 2015 by qsgy
 *All rights reserved. 
 *FileName:     $safeitemname$
 *Author:       oyh
 *Version:      
 *UnityVersion：
 *Date:   $time$      
 *Description:    
 *History: 
************************************************************************/
#endregion
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class Helper {
    [MenuItem("CONTEXT/Hold/Hold")]
    public static void Hold(MenuCommand cmd)
    {
        Hold hold = cmd.context as Hold;
        hold.GetHold();
    }

    [MenuItem("CONTEXT/Hold/Release")]
    public static void Release(MenuCommand cmd)
    {
        Hold hold = cmd.context as Hold;
        hold.Release();
    }

    [MenuItem("CONTEXT/Move/Flash")]
    public static void Flash(MenuCommand cmd)
    {
        Hold hold = cmd.context as Hold;
        hold.Release();
    }

    [MenuItem("CONTEXT/Build/Build")]
    public static void BuildWorkPiece(MenuCommand cmd)
    {
        Build build = cmd.context as Build;
        build.BuildWorkPiece();
    }


    [MenuItem("CONTEXT/Alarm/Alarm")]
    public static void Alarm(MenuCommand cmd)
    {
        Alarm al = cmd.context as Alarm;
        al.Alert();
    }

    [MenuItem("CONTEXT/Alarm/NoAlarm")]
    public static void NoAlarm(MenuCommand cmd)
    {
        Alarm al = cmd.context as Alarm;
        al.NoAlert();
    }
}
